// 店铺路由
const store = require('express').Router();

// 添加店铺
store.post('/', require('./action/store/create'));
// 查询店铺信息
store.get('/', require('./action/store/find'));
// 根据店铺id查询店铺信息
store.get('/id/:id', require('./action/store/findById'));
// 根据店铺id查询店铺信息
store.get('/:user_id', require('./action/store/findUserId'));
// 更新查询店铺信息
store.put('/', require('./action/store/modify'));
// 更新查询店铺信息
store.delete('/:id', require('./action/store/delete'));

module.exports = store;